import axios from 'axios'

//全局配置 axios 的根路径请求
axios.defaults.baseURL = 'https://d33a5037-6c63-4e92-8bb1-30018ab701ea.bspapp.com/http'


//拦截器
axios.interceptors.request.use((config)=>{

return config

},(err)=>{

    return Promise.reject(err)

})


axios.interceptors.response.use((res)=>{

    return res.data
    
},()=>{})

export default axios